package com.questionnaires.service;

import com.questionnaires.model.User;
import com.questionnaires.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by IntelliJ IDEA.
 * User: Ioana
 * Date: 1/16/12
 * Time: 9:25 PM
 * To change this template use File | Settings | File Templates.
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    UserRepository userRepository;

    @Transactional
    public void addUser(User user) {

        userRepository.addUser(user);
    }
}
